/**
 * 财务管理路由
 */
export default [
  {
    path: '/finance',
    meta: { requiresAuth: true },
    children: [
      {
        path: 'accounts',
        name: 'FinanceAccounts',
        component: () => import('@/views/finance/Accounts.vue'),
        meta: { title: '账户管理' }
      },
      {
        path: 'income',
        name: 'FinanceIncome',
        component: () => import('@/views/finance/Income.vue'),
        meta: { title: '收入管理' }
      },
      {
        path: 'expense',
        name: 'FinanceExpense',
        component: () => import('@/views/finance/Expense.vue'),
        meta: { title: '支出管理' }
      },
      {
        path: 'invoices',
        name: 'FinanceInvoices',
        component: () => import('@/views/finance/Invoices.vue'),
        meta: { title: '发票管理' }
      },
      {
        path: 'cost-accounting',
        name: 'FinanceCostAccounting',
        component: () => import('@/views/finance/CostAccounting.vue'),
        meta: { title: '成本核算' }
      },
      {
        path: 'cost-analysis',
        name: 'FinanceCostAnalysis',
        component: () => import('@/views/finance/CostAnalysis.vue'),
        meta: { title: '成本分析' }
      },
      {
        path: 'cost-budget',
        name: 'FinanceCostBudget',
        component: () => import('@/views/finance/CostBudget.vue'),
        meta: { title: '成本预算对比' }
      },
      {
        path: 'cost-alert',
        name: 'FinanceCostAlert',
        component: () => import('@/views/finance/CostAlert.vue'),
        meta: { title: '成本预警' }
      }
    ]
  }
]

